warning('off','all');
tic;
image = double(imread('forest.jpg'))/255;
image = imresize(image, 0.5);
result = dehaze_fast(image, 0.95, 15);
toc;
figure;
subplot(121);imshow(image);title('hazy image');
subplot(122);imshow(result);title('Scene radiance');
warning('on','all');